<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var i = 1;
    while(i<=50){
        document.write(i+"<br />");
        i++;
    }
</script>

</body>
</html>